//
//  CrashLoginViewController.m
//  WangLottery
//
//  Created by 黄修勇 on 12-5-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "CrashLoginViewController.h"
#import "LineLabelControl.h"

@interface CrashLoginViewController ()

@end

@implementation CrashLoginViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:@"LoginViewController" bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    self.title=@"安全登陆";
    
    //self.regisAcc.hidden=YES;
    
    UIView *view=[self forgotPsw];
    view.frame=CGRectMake(view.frame.origin.x, view.frame.origin.y-10.0f, view.frame.size.width, view.frame.size.height);
    self.loginTableView.frame=CGRectMake(0.0f, 0.0f, self.loginTableView.frame.size.width, self.loginTableView.frame.size.height+40.0f);
    // Do any additional setup after loading the view from its nib.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{

    return 40.0f;
}

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{

    UIView *view=[[UIView alloc]initWithFrame:CGRectMake(0.0f, 0.0f, tableView.frame.size.width, 40.0f)];
    UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(10.0f, 0.0f, view.frame.size.width-20, view.frame.size.height)];
    label.backgroundColor=[UIColor clearColor];
    label.textAlignment=UITextAlignmentCenter;
    label.textColor=[UIColor blackColor];
    label.shadowColor=[UIColor whiteColor];
    label.shadowOffset=CGSizeMake(0.0f, 1.0f);
    label.font=[UIFont systemFontOfSize:15.0f];
    label.text=@"为保障您的账户资金安全,请确认登陆状态";
    [view addSubview:label];
    [label release];
    return view;
}
@end
